package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum FeedbackStatusEnum {
    WAIT_REPLY((byte) 0, "待回复"),
    REPLIED((byte) 1, "有回复"),
    SOLVE((byte) 9, "已解决");

    public final Byte value;
    public final String desc;

    public static FeedbackStatusEnum enumOf(Byte value) {
        for (FeedbackStatusEnum statusEnum : values()) {
            if (statusEnum.value.equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
